package com.example.moduleone;

import android.content.Intent;
import android.support.annotation.Nullable;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.example.baselibrary.activity.BaseNewActivity;
import com.example.baselibrary.bean.PublicViewHolder;
import com.example.moduleone.activity.ModuleOneMainActivity;

public class MainActivity extends BaseNewActivity {

    private TextView tv_am_text;

    @Override
    protected int initLayoutRes() {
        return R.layout.activity_main;
    }

    @Override
    protected PublicViewHolder initViewHolderObject() {
        return null;
    }

    @Override
    protected void baseOnClick(int viewId) {

    }

    @Override
    protected void initView(@Nullable Bundle bundle) {
        super.initView(bundle);
        tv_am_text = findViewById(R.id.tv_am_text);
        tv_am_text.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this, ModuleOneMainActivity.class);
                startActivity(intent);
            }
        });
    }
}
